import 'package:flutter/cupertino.dart';

class rightTriangle extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Center(child: ClipPath(clipper: TrianglePath(), child: Container(height: 18, width: 18, color: Color(0xffebebeb))));
  }
}

class TrianglePath extends CustomClipper<Path> {
  @override
  Path getClip(Size size) {
    var path = Path();
    path.moveTo(0, 0);
    path.lineTo(size.width, 0);
    path.lineTo(0, size.height / 1.2);
    return path;
  }

  @override
  bool shouldReclip(CustomClipper<Path> oldClipper) {
    return true;
  }
}

class leftTriangle extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Center(child: ClipPath(clipper: TrianglePath2(), child: Container(height: 18, width: 18, color: Color(0xffe3f2f8))));
  }
}

class TrianglePath2 extends CustomClipper<Path> {
  @override
  Path getClip(Size size) {
    var path = Path();
    path.moveTo(0, 0);
    path.lineTo(size.width, 0);
    path.lineTo(size.width, size.height / 1.2);
    return path;
  }

  @override
  bool shouldReclip(CustomClipper<Path> oldClipper) {
    return true;
  }
}
